<?php echo nl2br(str_replace("\\\"", "", "TOS content")); ?>
<script type="text/javascript">
    webjs.tosbox.tostitle = "<?php echo nl2br(str_replace("\\\"", "", "TOS title")); ?>";
</script>